package coms.dataaccess.hibernate;

import coms.dataaccess.ConferenceDAO;
import coms.dataaccess.ConferenceItemDAO;
import coms.dataaccess.DAOFactory;
import coms.dataaccess.FileItemDAO;
import coms.dataaccess.ReviewDao;
import coms.dataaccess.TransactionDAO;
import coms.dataaccess.UserDao;

public class DAOFactoryImpl extends DAOFactory{
	
	
	private ReviewDao reviewDAO = new ReviewDaoImpl();
	private ConferenceItemDAO conferenceItemDAO = new ConferenceItemDAOImpl();
	private ConferenceDAO conferenceDAO = new ConferenceDAOImpl();
	private FileItemDAO fileItemDAO = new FileItemDAOImpl();
	private TransactionDAO transactionDAO = new TransactionDAOImpl();
	
	@Override
	public ConferenceItemDAO getConferenceItemDAO() {
		return conferenceItemDAO;
	}

	@Override
	public ReviewDao getReviewDAO() {
		return reviewDAO;
	}

	@Override
	public ConferenceDAO getConferenceDAO() {
		return conferenceDAO;
	}

	@Override
	public FileItemDAO getFileItemDAO() {
		return fileItemDAO;
	}
	
	@Override
	public UserDao getUserDAO() {		
		return new UserDaoImpl();
	}

	@Override
	public TransactionDAO getTransactionDAO() {
		return new TransactionDAOImpl();
	}
}
